let globalData = getApp().globalData;
Page({
  data: {
    opr: ''
  },
  transinfo(e) {
    var tid = e.detail; //传递数据
    console.log(tid);
    wx.navigateTo({
      url: '../detail/detail',
      success:res=>{
        res.eventChannel.emit('channeldata', {name:'kindear'})
      }
    })
  },
  topub() {
    wx.navigateTo({
      url: '../pub/pub',
    })
  },
  onLoad() {
    this.sc = this.selectComponent("#sc");
    
  },
  onReady() {},

  onReachBottom() {
    console.log('触底函数')
    var _ = this;
    _.setData({
      opr: 'rb'
    },()=>{
      _.setData({
        opr:''
      })
    })
  },
  onPullDownRefresh() {
    var _ = this;
    _.setData({
      opr: 'pr'
    },()=>{
      _.setData({
        opr:''
      })
    })
  }

})